package com.hqyj.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
//@ConfigurationProperties(prefix = "person2")
public class Person2 {
    @Value("${person2.name2}")
    private String name;
    @Value("${person2.gender2}")
    private String gender;
    @Value("${person2.age2}")
    private Integer age;
}
